package pl.sind.blip;

import java.io.InputStream;
import java.util.Properties;

import org.junit.Before;

import pl.sind.blip.BlipConnector;
import pl.sind.blip.BlipConnectorException;

public abstract class BaseBlipTestCase {
	Properties props;
	String username;
	String password;
	
	@Before
	public void setUp() throws Exception {
		props = new Properties();
		InputStream is = this.getClass().getClassLoader().getResourceAsStream(
				"test.properties");
		props.load(is);
		username = props.getProperty("username");
		password = props.getProperty("password");
		Thread.sleep(500);
	}
	
	protected BlipConnector newConnector() throws BlipConnectorException{
		return new BlipConnector(username,password,null,null,"JUnit4 TestCase");
	}
}
